//
//  ViewController.m
//  YiLiao
//
//  Created by mac on 16/7/1.
//  Copyright © 2016年 Noah. All rights reserved.
//

#import "ViewController.h"
#import "LoginViewController.h"
#import "BgImageView.h"
#import "AnimationHandle.h"

@interface ViewController ()
{
    BgImageView *imgView;
}
@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    imgView = [[BgImageView alloc] initWithFrame:[UIScreen mainScreen].bounds];
    [self.view addSubview:imgView];
    [self removeView];
}
- (void)removeView
{
    [UIView animateWithDuration:1 animations:^{
        imgView.alpha = 0.5;
    } completion:^(BOOL finished) {
        LoginViewController *loginVC = [[LoginViewController alloc] init];
        [AnimationHandle jumpNextViewControll:loginVC];
    }];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
